<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('device/types', 'Device/types');
Route::get('device/index', 'Device/index');
Route::put('device/update/:id', 'Device/update');
Route::post('device/batchUpdateStatus', 'Device/batchUpdateStatus');

Route::post('report/device', 'Report/device');
Route::post('report/dashboard', 'Report/dashboard');
Route::post('report/grainSituation', 'Report/grainSituation');

Route::get('stockSetting/read/:id', 'StockSetting/read');
Route::post('stockSetting/save', 'StockSetting/save');
Route::post('stockSetting/copy', 'StockSetting/copy');

Route::miss(function () {
    return json();
});